Skip to main content

All Questions

0votes
2answers
1kviews

Union find using unordered map and templates in C++

I tried to implement union find (disjoint set data structure) algorithm in C++. There I used unordered_map data structure. Is there a better way of doing this using any other data structure. While ...
rusiru thushara's user avatar
8votes
3answers
2kviews

Extended Euclidean Algorithm in modern and readable C++

In Python the Extended Euclidean Algorithm (egcd) could be written as follows: ...
andrew's user avatar

close